﻿namespace DoVuiKinhThanh.Domain {
    public class Answer : DomainBase {
        #region IFields

        private string m_content = string.Empty;
        private bool m_isCorrectAnswer = false;

        #endregion

        #region IMethods

        public Answer Clone() {
            var clonedAnswer = new Answer();
            clonedAnswer.m_content = m_content;
            clonedAnswer.m_isCorrectAnswer = m_isCorrectAnswer;
            return clonedAnswer;
        }

        #endregion

        #region IProperties

        public string Content {
            get {
                return m_content;
            }
            set {
                if (value != m_content) {
                    m_content = value;
                    OnPropertyChanged(() => Content);
                }
            }
        }

        public bool IsCorrectAnswer {
            get {
                return m_isCorrectAnswer;
            }
            set {
                if (value != m_isCorrectAnswer) {
                    m_isCorrectAnswer = value;
                    OnPropertyChanged(() => IsCorrectAnswer);
                }
            }
        }

        #endregion
    }
}